<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Vite 官方中文文档镜像</title>
    <meta name="description" content="Vite 是下一代前端开发与构建工具。Vite 意在提供开箱即用的配置，同时它的 插件 API 和 JavaScript API 带来了高度的可扩展性，并有完整的类型支持。">
    <link rel="stylesheet" href="static/css/style.89b26939.css">
    <link rel="modulepreload" href="https://vitejs.bootcss.com/assets/Home.42b0c14e.js">
    <link rel="modulepreload" href="https://vitejs.bootcss.com/assets/AlgoliaSearchBox.e4181e2f.js">
    <link rel="modulepreload" href="https://vitejs.bootcss.com/assets/app.78a58927.js">
    <link rel="modulepreload" href="https://vitejs.bootcss.com/assets/index.md.cd4ae535.lean.js">
    <link rel="modulepreload" href="https://vitejs.bootcss.com/assets/app.78a58927.js">
    <link rel="icon" type="image/svg+xml" href="static/picture/logo2.svg">
    <meta name="twitter:title" content="Vite 官方中文文档镜像">
    <meta property="og:title" content="Vite 官方中文文档镜像">
  </head>
  <body>
    <div id="app"><!--[--><div class="no-sidebar theme"><header class="nav-bar" data-v-40587210=""><div class="sidebar-button" data-v-40587210=""><svg class="icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewbox="0 0 448 512"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z" class=""></path></svg></div><a class="nav-bar-title" href="" aria-label="Vite 官方中文文档镜像, back to home" data-v-40587210="" data-v-7ac13a1e=""><img class="logo" src="static/picture/logo2.svg" alt="Logo" data-v-7ac13a1e=""> Vite 官方中文文档镜像</a><div class="flex-grow" data-v-40587210=""></div><div class="nav" data-v-40587210=""><nav class="nav-links" data-v-40587210="" data-v-35b91e7e=""><!--[--><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">指引 <!----></a></div></div><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">配置 <!----></a></div></div><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">插件 <!----></a></div></div><div class="item" data-v-35b91e7e=""><div class="nav-dropdown-link" data-v-35b91e7e="" data-v-18d75f62=""><button class="button" data-v-18d75f62=""><span class="button-text" data-v-18d75f62="">相关链接</span><span class="right button-arrow" data-v-18d75f62=""></span></button><ul class="dialog" data-v-18d75f62=""><!--[--><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Twitter</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Discord Chat</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Awesome Vite</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Dev.to 社区</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Rollup 插件兼容</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">更新日志</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><!--]--></ul></div></div><div class="item" data-v-35b91e7e=""><div class="nav-dropdown-link" data-v-35b91e7e="" data-v-18d75f62=""><button class="button" data-v-18d75f62=""><span class="button-text" data-v-18d75f62="">多语言</span><span class="right button-arrow" data-v-18d75f62=""></span></button><ul class="dialog" data-v-18d75f62=""><!--[--><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">简体中文</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">English</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">日本語</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><!--]--></ul></div></div><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-49fe041d="">官方网站 <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-49fe041d=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><!--]--><!----><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-49fe041d="">GitHub <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-49fe041d=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div></nav></div><!--[--><!--[--><div class="algolia-search-box" id="docsearch"></div><!--]--><!--]--></header><aside class="sidebar" data-v-17c48e2f=""><nav class="nav-links nav" data-v-17c48e2f="" data-v-35b91e7e=""><!--[--><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">指引 <!----></a></div></div><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">配置 <!----></a></div></div><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">插件 <!----></a></div></div><div class="item" data-v-35b91e7e=""><div class="nav-dropdown-link" data-v-35b91e7e="" data-v-18d75f62=""><button class="button" data-v-18d75f62=""><span class="button-text" data-v-18d75f62="">相关链接</span><span class="right button-arrow" data-v-18d75f62=""></span></button><ul class="dialog" data-v-18d75f62=""><!--[--><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Twitter</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Discord Chat</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Awesome Vite</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Dev.to 社区</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">Rollup 插件兼容</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">更新日志</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><!--]--></ul></div></div><div class="item" data-v-35b91e7e=""><div class="nav-dropdown-link" data-v-35b91e7e="" data-v-18d75f62=""><button class="button" data-v-18d75f62=""><span class="button-text" data-v-18d75f62="">多语言</span><span class="right button-arrow" data-v-18d75f62=""></span></button><ul class="dialog" data-v-18d75f62=""><!--[--><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">简体中文</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">English</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><li class="dialog-item" data-v-18d75f62=""><div class="nav-dropdown-link-item" data-v-18d75f62="" data-v-07381bdb=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-07381bdb=""><span class="arrow" data-v-07381bdb=""></span><span class="text" data-v-07381bdb="">日本語</span><span class="icon" data-v-07381bdb=""><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-07381bdb=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></span></a></div></li><!--]--></ul></div></div><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-49fe041d="">官方网站 <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-49fe041d=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><!--]--><!----><div class="item" data-v-35b91e7e=""><div class="nav-link" data-v-35b91e7e="" data-v-49fe041d=""><a class="item isExternal" href="javascript:;" target="_blank" rel="noopener noreferrer" data-v-49fe041d="">GitHub <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-49fe041d=""><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div></nav><!--[--><!--]--><ul class="sidebar-links" data-v-17c48e2f=""><!--[--><li class="sidebar-link"><p class="sidebar-link-item">指引</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">为什么选 Vite</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">开始</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">功能</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">使用插件</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">依赖预构建</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">静态资源处理</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">构建生产版本</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">部署静态站点</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">环境变量与模式</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">服务端渲染（SSR）</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">后端集成</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">比较</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">从 v1 迁移</a><!----></li></ul></li><li class="sidebar-link"><p class="sidebar-link-item">API</p><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">插件 API</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">HMR API</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">JavaScript API</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="javascript:;">配置参考</a><!----></li></ul></li><!--]--></ul><!--[--><!--[--><div class="sponsors sidebar"><a href="javascript:;" target="_blank" rel="noopener"><span>Sponsors</span></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/stackblitz.svg" alt="StackBlitz" id="sponsor-stackblitz"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/tailwind-labs.svg" alt="Tailwind Labs" id="sponsor-tailwind"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/vuejobs.png" alt="Vue Jobs" id="sponsor-vuejobs"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/mux.svg" alt="Mux" id="sponsor-mux"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/plaid.svg" alt="Plaid Inc." id="sponsor-plaid"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/divriots.png" alt="divriots" id="sponsor-divriots"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/finclip.png" alt="FinClip" id="sponsor-finclip"></a></div><!--]--><!--]--></aside><!-- TODO: make this button accessible --><div class="sidebar-mask"></div><main class="home" aria-labelledby="main-title" data-v-8382b818=""><header class="home-hero" data-v-8382b818="" data-v-5d8b683d=""><figure class="figure" data-v-5d8b683d=""><img class="image" src="static/picture/logo6.png" data-v-5d8b683d=""></figure><h1 id="main-title" class="title" data-v-5d8b683d="">Vite 官方中文文档镜像</h1><p class="tagline" data-v-5d8b683d="">Vite 是下一代前端开发与构建工具。Vite 意在提供开箱即用的配置，同时它的 插件 API 和 JavaScript API 带来了高度的可扩展性，并有完整的类型支持。</p><div class="nav-link action" data-v-5d8b683d="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">开始 <!----></a></div><div class="nav-link action alt" data-v-5d8b683d="" data-v-49fe041d=""><a class="item" href="javascript:;" data-v-49fe041d="">了解更多 <!----></a></div></header><!--[--><!--]--><div class="home-features" data-v-8382b818="" data-v-245bde66=""><div class="wrapper" data-v-245bde66=""><div class="container" data-v-245bde66=""><div class="features" data-v-245bde66=""><!--[--><section class="feature" data-v-245bde66=""><h2 class="title" data-v-245bde66="">💡 极速的服务启动</h2><p class="details" data-v-245bde66="">使用原生 ESM 文件，无需打包!</p></section><section class="feature" data-v-245bde66=""><h2 class="title" data-v-245bde66="">⚡️ 轻量快速的热重载</h2><p class="details" data-v-245bde66="">无论应用程序大小如何，都始终极快的模块热重载（HMR）</p></section><section class="feature" data-v-245bde66=""><h2 class="title" data-v-245bde66="">🛠️ 丰富的功能</h2><p class="details" data-v-245bde66="">对 TypeScript、JSX、CSS 等支持开箱即用。</p></section><section class="feature" data-v-245bde66=""><h2 class="title" data-v-245bde66="">📦 优化的构建</h2><p class="details" data-v-245bde66="">可选 “多页应用” 或 “库” 模式的预配置 Rollup 构建</p></section><section class="feature" data-v-245bde66=""><h2 class="title" data-v-245bde66="">🔩 通用的插件</h2><p class="details" data-v-245bde66="">在开发和构建之间共享 Rollup-superset 插件接口。</p></section><section class="feature" data-v-245bde66=""><h2 class="title" data-v-245bde66="">🔑 完全类型化的API</h2><p class="details" data-v-245bde66="">灵活的 API 和完整 TypeScript 类型。</p></section><!--]--></div></div></div></div><div class="home-content" data-v-8382b818=""><div style="position:relative;" data-v-8382b818=""><div><div class="frontpage sponsors"><h2>赞助</h2><div class="platinum-sponsors"><!--[--><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/stackblitz.svg" alt="StackBlitz" id="sponsor-stackblitz"></a><!--]--></div><div class="gold-sponsors"><!--[--><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/tailwind-labs.svg" alt="Tailwind Labs" id="sponsor-tailwind"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/vuejobs.png" alt="Vue Jobs" id="sponsor-vuejobs"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/mux.svg" alt="Mux" id="sponsor-mux"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/plaid.svg" alt="Plaid Inc." id="sponsor-plaid"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/divriots.png" alt="divriots" id="sponsor-divriots"></a><a href="javascript:;" target="_blank" rel="noopener" aria-label="sponsor-img"><img src="static/picture/finclip.png" alt="FinClip" id="sponsor-finclip"></a><!--]--></div><a href="javascript:;" target="_blank" rel="noopener">在 GitHub 上赞助我们</a></div></div></div></div><!--[--><!--]--><footer class="footer" data-v-8382b818="" data-v-bff49316=""><div class="container" data-v-bff49316=""><p class="text" data-v-bff49316="">MIT Licensed | Copyright © 2019-present Evan You &amp; Vite Contributors</p></div></footer><!--[--><!--]--></main></div><!----><!--]--></div>
    <script>__VP_HASH_MAP__ = JSON.parse("{\"readme.md\":\"d1b5917e\",\"blog_announcing-vite2.md\":\"14e9b117\",\"config_index.md\":\"303fd1c3\",\"guide_api-hmr.md\":\"da9d1b4e\",\"guide_api-javascript.md\":\"3b4d66d2\",\"guide_api-plugin.md\":\"110f510a\",\"guide_assets.md\":\"9a92c613\",\"guide_backend-integration.md\":\"d109e40c\",\"guide_build.md\":\"fd51e329\",\"guide_comparisons.md\":\"373b55b9\",\"guide_dep-pre-bundling.md\":\"9ff6d1d0\",\"guide_env-and-mode.md\":\"6bbc738d\",\"guide_features.md\":\"7fc0e05b\",\"guide_index.md\":\"60c392f2\",\"guide_migration.md\":\"a0036350\",\"guide_ssr.md\":\"12734ace\",\"guide_static-deploy.md\":\"5f687a58\",\"guide_using-plugins.md\":\"08c5de31\",\"guide_why.md\":\"79c3b814\",\"index.md\":\"cd4ae535\",\"plugins_index.md\":\"1e31be9a\"}")</script>
    <script type="module" async="" src="static/js/app.78a58927.js"></script>
    
  </body>
</html>